package com.tt.service.impl;

import com.tt.dao.AddressMapper;
import com.tt.pojo.Address;
import com.tt.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddressServiceImpl implements AddressService {
    @Autowired
    AddressMapper addressMapper;

    @Override
    public List<Address> getAddressList(Address address) {
        List<Address> list = addressMapper.getAddressList(address);
        return list;
    }

    @Override
    public Address getAddressById(Integer id) {
        return addressMapper.getAddressById(id);
    }

    @Override
    public int updateAddress(Address address) {
        return addressMapper.updateAddress(address);
    }
}
